﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LCMS_MVC.Models;
using VDS.RDF;
using VDS.RDF.Storage;

namespace LCMS_MVC.Controllers
{
    public class LORegistrationController : Controller
    {   
        //
        // GET: /LORegistartion/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Index(LORegistrationModel LearningObject)
        {

            TriplesModel LearningObjectTriples = new TriplesModel();
            LearningObjectTriples.TriplesFactory(LearningObject);

            return RedirectToAction("Details", LearningObject);
        }

        [HttpGet]
        public ActionResult Details(LORegistrationModel LearningObject)
        {
            
            return View(LearningObject);
        }
    }
}
